package com.challenge.smsservice.majormanage.service.impl;

import com.challenge.smsbase.Service.impl.GenericManagerImpl;
import com.challenge.smsdao.majormanage.dao.MajorDao;
import com.challenge.smsdao.majormanage.domain.Major;
import com.challenge.smsservice.majormanage.service.MajorManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * luhongyu
 */
@Component
public class MajorManagerImpl extends GenericManagerImpl<Major,Long> implements MajorManager {
    //inherit GenericManagerImpl
    MajorDao majorDao;

    /**
     * setMajorDao
     * @param majorDao
     */
    @Autowired
    public void setMajorDao(MajorDao majorDao) {
        this.majorDao = majorDao;
        this.dao = this.majorDao;
    }
}
